package com.wlhse.dao;

import com.wlhse.dto.CheckPerson;
import com.wlhse.dto.HseCheckRecordDto;
import com.wlhse.dto.RectCheckRecordDto;
import com.wlhse.dto.outDto.Sys_rolesDto;
import com.wlhse.entity.CheckPersonPojo;
import com.wlhse.entity.QHSEECheckRecordPojo;
import com.wlhse.entity.UserRolePojo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QHSEECheckRecordDao {
    List<QHSEECheckRecordPojo> queryQHSEECheckRecordByInternalAuditorID1(HseCheckRecordDto hseCheckRecordDto);
    List<QHSEECheckRecordPojo> queryQHSEECheckRecordByInternalAuditorID2(HseCheckRecordDto hseCheckRecordDto);
    List<QHSEECheckRecordPojo> queryQHSEECheckRecordByManagementAuditorID1(HseCheckRecordDto hseCheckRecordDto);
    List<QHSEECheckRecordPojo> queryQHSEECheckRecordByManagementAuditorID2(HseCheckRecordDto hseCheckRecordDto);

    int updateRecordStatus(QHSEECheckRecordPojo qhseeCheckRecordPojo);

    int deleteCheckRecord(Integer qHSEECheckRecordID);

    QHSEECheckRecordPojo queryCheckRecord(Integer qHSEECheckRecordID);

    List<QHSEECheckRecordPojo> queryCheckRecord1(HseCheckRecordDto hseCheckRecordDto);
    List<QHSEECheckRecordPojo> queryCheckRecord2(HseCheckRecordDto hseCheckRecordDto);

    int updateRectCheckRecord(RectCheckRecordDto rectCheckRecordDto);

    int addCheckperson(CheckPerson checkPerson);
    String queryRole(Integer id);
    int updateCheckperson(CheckPerson checkPerson);
    int updateCheckpersonRole(UserRolePojo userRolePojo);

    int addCheckpersonRole(@Param("Uname") String Uname,@Param("code") String code);

    List<CheckPersonPojo> queryAllCheckPerson();

    List<CheckPersonPojo> queryHeadman();

    List<CheckPersonPojo> queryMember();

    CheckPersonPojo getCheckPerson(Integer checkPersonID);

    int deleteCheckPerson(Integer checkPersonID);

    int updatePersonRole(CheckPerson checkPerson);

    int deleteCheckPersons(@Param("list") List<String> checkPersonIDList);
    List<Sys_rolesDto> queryNameLikeQhsee();
}
